#pragma once

#include "qcontrol.h"


namespace micro{
namespace gui{



class QTabControl :	public QControl
{
protected:
	int nrTabs;


public:
	QTabControl(void);
	virtual ~QTabControl(void);
	bool Create(QWindow* parent, int id = 0, UINT style=0);
 
	void	InsertTab(QString label);
	void    SetUnicodeFormat(BOOL bo = TRUE);


	void	SetPadding(int cx, int cy){  TabCtrl_SetPadding(_window,cx,cy);  }

	int		GetSelectedTab() { return   TabCtrl_GetCurSel(_window);   } 

	void	AdjustRect(BOOL flag, QRect &rect);
	int		GetCurSel();
	void	SetOwnerDraw(void);
};



}
}//micro